package com.fbs.wowo.essay.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fbs.wowo.forum.vo.CommentsList;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class EssayInfoResponse {

    private String essayId;         //文章ID
    private String userId;          //用户ID
    private String title;           //文章标题
    private String userName;        //作者名称
    private String userPhoto;       //作者头像
    private Date createDate;        //创建时间
    private BigDecimal price;       //价格
    private String text;            //文章内容
    private int likeNum;            //点赞量
    private int commentNum;         //评论数
    private List<CommentsList> comments;    //评论列表
    private Boolean collectState;   //收藏状态
    private int likeState;          //点赞状态 （-1 踩 1 赞 0 没点）

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getLikeState() {
        return likeState;
    }

    public void setLikeState(int likeState) {
        this.likeState = likeState;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getEssayId() {
        return essayId;
    }

    public void setEssayId(String essayId) {
        this.essayId = essayId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public Boolean getCollectState() {
        return collectState;
    }

    public void setCollectState(Boolean collectState) {
        this.collectState = collectState;
    }

    public List<CommentsList> getComments() {
        return comments;
    }

    public void setComments(List<CommentsList> comments) {
        this.comments = comments;
    }
}
